CFLAGS = -g -Wall -Wshadow
GCC = gcc $(CFLAGS)

SRCS = main.c treeinsert.c treeprint.c treesearch.c 
SRCS += treedestroy.c treedelete.c

OBJS = $(SRCS:%.c = %.o)

tree:$(OBJS)
	$(GCC) $(OBJS) -o tree
#
memory:tree
	valgrind --leak-check=yes --verbose ./tree 10

.c.o:
	$(GCC) $(OBJS) -c $*.c

clean:
	rm -f *.o a.out tree